﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace ConsoleApp1
{
    enum CookType
    {
        爆炒猪肝,
        清蒸鱼,
        番茄炒西红柿,
        土豆炒马铃薯,
        酸菜炒柠檬片
    }
    class CookRobot:Robot
    {
        private CookType cooktype;
        public CookType CookType
        {
            get { return this.cooktype; }
            set { this.cooktype = value; }
        }
        public CookRobot(string name,CookType cooktype) : base(name)
        {
            CookType = cooktype;
        }
        public CookRobot()
        {
        }
        public override void Working()
        {
            Console.WriteLine("我叫{0},我可以炒{1}",Name,cooktype);
        }
    }
}
